package com.proj.bean;

public class Review {
    private int id;
    private int userid;
    private int goodsid;
    private int grade;
    private String content;
    private String reviewtime;
    private User user;
    private String goodsname;

    @Override
    public String toString() {
        return "Review{" +
                "id=" + id +
                ", userid=" + userid +
                ", goodsid=" + goodsid +
                ", grade=" + grade +
                ", content='" + content + '\'' +
                ", reviewtime='" + reviewtime + '\'' +
                ", user=" + user +
                ", goodsname='" + goodsname + '\'' +
                '}';
    }

    public Review(int id, int userid, int goodsid, int grade, String content, String reviewtime, User user, String goodsname) {
        this.id = id;
        this.userid = userid;
        this.goodsid = goodsid;
        this.grade = grade;
        this.content = content;
        this.reviewtime = reviewtime;
        this.user = user;
        this.goodsname = goodsname;
    }

    public Review() {
    }

    public String getGoodsname() {
        return goodsname;
    }

    public void setGoodsname(String goodsname) {
        this.goodsname = goodsname;
    }

    public int getGrade() {
        return grade;
    }

    public void setGrade(int grade) {
        this.grade = grade;
    }

    public User getUser() {
        return user;
    }
    public void setUser(User user) {
        this.user = user;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public int getGoodsid() {
        return goodsid;
    }

    public void setGoodsid(int goodsid) {
        this.goodsid = goodsid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getReviewtime() {
        return reviewtime;
    }

    public void setReviewtime(String reviewtime) {
        this.reviewtime = reviewtime;
    }
}
